package com.spm.librarianmanagersystem.mapper;

import com.spm.librarianmanagersystem.pojo.Borrow;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.Date;

@Mapper
@Repository
public interface ReturnMapper {
    Boolean updateBorrowForReturn(Integer borrowNum, Date returnTime);
    Boolean updateBookForReturn(Integer bookId, String isbn);
    Borrow getBorrowRecord(Integer borrowNum, String currentUserId);
}
